//
//  AES128Util.h
//  ASE128Demo
//
//  Created by zhenghaishu on 11/11/13.
//  Copyright (c) 2013 Youku.com inc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface AES128Util : NSObject

/** AES128加密 */
+(NSString *)AES128Encrypt:(NSString *)plainText key:(NSString *)key;
/** AES128解密 */
+(NSString *)AES128Decrypt:(NSString *)encryptText key:(NSString *)key;
/** data转换为十六进 */
+ (NSString *)hexStringFromData:(NSData *)data;
/** 十六进制转Data */
+ (NSData*)dataForHexString:(NSString*)hexString;
/** 十六进制转换为普通字符串的 */
+ (NSString *)stringFromHexString:(NSString *)hexString;
/**十六进制字符字符串转 CGFloat */
+ (CGFloat)numberWithHexString:(NSString *)hexString;

/**int 转十六进制 */
+ (NSString *)stringWithHexNumber:(NSUInteger)hexNumber;

@end
